package queue;

public class Test2 {
    public static void test1(){
        MyQueue queue = new MyQueue();
        queue.offer("5");
        queue.offer("3");
        queue.offer("7");
        queue.offer("1");
        System.out.println(queue);
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue);
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue);
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue);
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue);
        System.out.println(queue.peek());
        System.out.println(queue.poll());
    }
    public static void main(String[] args) {
        test1();
    }
}
